package com.example.petshop.service;

import com.example.petshop.entity.Address;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AddressService {

    List<Address> getAddressesByUserId(Long userId);



    Address getAddressById(int addressid);



    Address updateAddress(Address address);

    Address addAddress(Address address);

    boolean removeById(int addressid);

    Address setAsDefaultAddress(int addressId, Long userId);

    Address getDefaultAddressByUserId(Long userId);
}
